<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Mailbox with some customizations as described in docs" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<%@ include file="/include/person_include.jsp"%>
<body>
<div class="main fr">
    <div class="bar"></div>
    <!--意见反馈-->
    <p class="tishi bdb1">
        <span class="h2-bar"></span>意见反馈</p>
    <form action="${path }/apiPerson/advice" method="post" name="publishForm"   >
    			<input  name="userId" type="hidden"  value="${userId }"/>
                <input   name="token" type="hidden"  value="${token }"/>
        <div class="feedback">
            <div class="feedback-div clearfix">
                <ul class="payList">
                    <li><label>标题</label></li>
                    <li><span class="payListRadio"><input name="type" value="1" type="radio" class="radioClass"></span>软件错误</li>
                    <li><span class="payListRadio"><input name="type" value="2" type="radio" checked="checked"  class="radioClass"></span>改进建议</li>
                    <li><span class="payListRadio on"><input name="type" value="3" type="radio" class="radioClass"></span>其它问题</li>
                </ul>
                <div class="cb"></div>
            </div>
            <ul class="feedback-ul">
                <li class="reason"><label style="text-align:center">用户建议与投诉<span class="error-block">(200以内)</span></label>
                    <textarea id="content"  name="content" cols="" rows="" class="textarea"></textarea></li>
                <li><label>联系电话</label><input type="text" class="inputs" id="phone" name="phone" value="${business.phone }"></li>
            </ul>
            <div class="tl ml125 mt20">
                <input type="submit" value="立即提交" class="button-yellow-s" id="fabu">
                <input type="reset" value="重置" class="blueButton" id="resetId"> </div>
        </div>

    </form>
</div>
</body>
<script>
 $("form[name=publishForm]").submit(function(){
	 	
		//手机号正则
		var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;
		//电话
		var phone = $.trim($('#phone').val());
		if (!phoneReg.test(phone)) {
			layer.msg('请输入有效的手机号码');
			return false;
		}
		
		layer.msg('提交成功');
		 setTimeout(function() {
         }, 1000)
 });
 
</script>
 
</html>